package com.example.s05mybaitsplus.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_goods")
public class Goods {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String name;
    private Integer price;
    private Date pubdate;
    @TableField(value = "typeName")
    private String typeName;
    private String intro;
    private String picture;
    private Integer flag;
    private Integer star;
    @TableField(value = "isDelete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;


}
